<template>
  <el-config-provider :locale="locale" :size="size">
    <!-- 开启水印 -->
<<<<<<< HEAD
=======
    <div>测试分支---</div>
>>>>>>> c3b01c50d266c53bf5fb219b3e3320efd02fa80c
    <el-watermark v-if="watermarkEnabled" :font="{ color: fontColor }" :content="defaultSettings.watermarkContent"
      class="wh-full">
      <router-view />
    </el-watermark>
    <!-- 关闭水印  git-->
    <router-view v-else />
  </el-config-provider>
</template>

<script setup lang="ts">
import { useAppStore, useSettingsStore } from "@/store";
import defaultSettings from "@/settings";
import { ThemeEnum } from "@/enums/ThemeEnum";

const appStore = useAppStore();
const settingsStore = useSettingsStore();
console.log(this, 'ceshi2024---3-10')
console.log(this, 'ceshi')
console.log(this, 'ceshi')
const locale = computed(() => appStore.locale);
const size = computed(() => appStore.size);
const watermarkEnabled = computed(() => settingsStore.watermarkEnabled);
console.log(this, 'ceshi')
// 明亮/暗黑主题水印字体颜色适配 我测试下分支121321321
const fontColor = computed(() => {
  return settingsStore.theme === ThemeEnum.DARK
    ? "rgba(255, 255, 255, .15)"
    : "rgba(0, 0, 0, .15)";
});
// 明亮/暗黑主题水印字体颜色适配
const fontColor1 = computed(() => {
  return settingsStore.theme === ThemeEnum.DARK
    ? "rgba(255, 255, 255, .15)"
    : "rgba(0, 0, 0, .15)";
});
// 明亮/暗黑主题水印字体颜色适配
const fontColor2 = computed(() => {
  return settingsStore.theme === ThemeEnum.DARK
    ? "rgba(255, 255, 255, .15)"
    : "rgba(0, 0, 0, .15)";
});
// 明亮/暗黑主题水印字体颜色适配
const fontColor99 = computed(() => {
  return settingsStore.theme === ThemeEnum.DARK
    ? "rgba(255, 255, 255, .15)"
    : "rgba(0, 0, 0, .15)";
});
// 明亮/暗黑主题水印字体颜色适配
const fontColor5555 = computed(() => {
  return settingsStore.theme === ThemeEnum.DARK
    ? "rgba(255, 255, 255, .15)"
    : "rgba(0, 0, 0, .15)";
});
</script>
